package com.hqyj.springbootdemo01.common.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author sdx2009
 * @package com.hqyj.springbootdemo01.common.config
 * @date 2022/8/27 13:53
 */
@Configuration
public class MyPaginationConfig {

    /**
     * 分页拦截器
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor interceptor = new PaginationInterceptor();
        return interceptor;
    }
}
